<?php

namespace YmPhp\Admin\Models\Business;
use YmPhp\Admin\Models\BasicModel;
use YmPhp\Admin\Traits\ModelTree;
class BusinessCategory extends BasicModel
{

    use ModelTree;

    protected $table = 'business_category';

    // 父级ID字段名称，默认值为 parent_id
    protected $parentColumn = 'parent_id';

    // 排序字段名称，默认值为 order
    protected $orderColumn = 'O';

    // 标题字段名称，默认值为 title
    protected $titleColumn = 'name';



    public function getDetail($id)
    {
        return self::where('id', $id)->first();
    }

}
